package com.dlx.mem.client;

import com.dlx.model.mem.MemLevel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <h3>smms_parent</h3>
 *
 * @author nglon
 * @description <p>会员等级调用类</p>
 * @date 2021-11-28 15:15
 **/
@FeignClient("service-mem")
@Component
public interface MemLevelFeignClient {

    @GetMapping("/admin/mem/level/inner/getById/{id}")
    MemLevel getById(@PathVariable("id") Long id);

    @GetMapping("/admin/mem/level/inner/getLevelList")
    List<MemLevel> getLevelList();
}
